#ifndef CVM_H
#define	CVM_H

#include <QStack>
#include <QVector>

#include "data/CReference.h"

#include "CFrame.h"

class CVM
{
private:
    char* code;
    int codeSize;
    QStack<CFrame*> frames;
    QVector<char*> references;


public:
    CVM(char* code, int codeSize);
    
    void start();
    
private:
    void execute();
};

#endif

